<include file="public+header" />

   <!-- 标题  -->
   <div class="title"><lang>角色列表</lang></div>

   <!-- 工具条  -->
   <div class="toolbar">

      <!--  功能操作区域  -->
      <div class="operate left" >
	      <input type="button" name="add" value="<lang>新增</lang>" onclick="add()" class="add button">
          <input type="button" name="edit" value="<lang>编辑</lang>" onclick="edit()" class="edit button">
          <input type="button" name="delete" value="<lang>删除</lang>" onclick="foreverdel()" class="delete button">
      </div>

      <!-- 查询区域 -->
      <div class="right search_form">
         <form method='post' action="__ACTION__">
            <div class="left">
			   <input type="text" name="role_name" title="<lang>角色名</lang>" class="field" >
               <input type="submit" id="" name="search" value="<lang>查询</lang>" onclick="" class="search button">
			</div>
        </form>
     </div>
  </div>

 <!-- 清除浮动 -->
  <span class="clear"></span>

  <!-- 正文 -->
  <div id="content" class="content">
      <table class="data full" id="checkList">
        <thead>
         <tr>
          <th width="5px"><input type="checkbox" onclick="checkAll('checkList')"></th>
          <th><a href="javascript:sortBy('role_id','{$sSortByUrl}')" title="<lang>按照编号</lang>{$sSortByDescription}<lang>排列</lang> "><lang>编号</lang></a></th>
          <th><a href="javascript:sortBy('role_name','{$sSortByUrl}')" title="<lang>按照组名</lang>{$sSortByDescription}<lang>排列</lang> "><lang>组名</lang></a></th>
          <th><a href="javascript:sortBy('role_parentid','{$sSortByUrl}')" title="<lang>按照上级组</lang>{$sSortByDescription}<lang>排列</lang> "><lang>上级组</lang></a></th>
          <th><a href="javascript:sortBy('role_status','{$sSortByUrl}')" title="<lang>按照状态</lang>{$sSortByDescription}<lang>排列</lang> "><lang>状态</lang></a></th>
          <th><lang>操作</lang></th>
          </tr>
          </thead>
          <tbody>
          <foreach for=arrList>
           <tr>
            <td><input type="checkbox" name="key"	value="{$value['role_id']}"></td>
            <td>{$value['role_id']}</td>
            <td><a href="javascript:edit('{$value['role_id']}')">{$value['role_name']}</a></td>
            <td>{$value['role_parentid']|getRolenameByid}</td>
            <td><img src="__TMPLPUB__/Images/<if condition="$value['role_status'] eq 1" >yes<else/>no</if>.gif"/></td>
            <td><if condition="$value['role_status'] eq 1" ><a href="javascript:forbid('{$value['role_id']}')"><lang>禁用</lang></a><else/><a href="javascript:resume('{$value['role_id']}')"><lang>恢复</lang></a></if>&nbsp;<a href="javascript:app('{$value['role_id']}')"><lang>授权</lang></a>&nbsp;<a href="javascript:user('{$value['role_id']}')"><lang>用户</lang></a>&nbsp;</td>
          </tr>
          </foreach>
        </tbody>
        </table>

		<!-- 工具条  -->
		<div class="toolbar">
		   <!--  功能操作区域  -->
           <div class="operate" >
              <input type="button" name="add" value="<lang>新增</lang>" onclick="add()" class="add button">
              <input type="button" name="edit" value="<lang>编辑</lang>" onclick="edit()" class="edit button">
              <input type="button" name="delete" value="<lang>删除</lang>" onclick="foreverdel()" class="delete button">
           </div>
	    </div>

		<!-- 分页条  -->
		{$sPageNavbar}

   </div>
   <!-- end content -->

<include file="public+footer">